<?php
// print_r($_GET);
// 删除数据库
$link =  mysqli_connect("localhost","root","root","2113");
$id=$_GET['id'];
$sql = "DELETE FROM student WHERE id=$id";
$res =  mysqli_query($link,$sql);
if($res){
	// echo "删除成功";
	echo "<script>alert('删除成功');window.location.href='student.php';</script>";
}else{
	echo "删除失败";
}

?>